package com.ph.seata.storage.service;

import com.ph.seata.storage.dto.CommodityDTO;
import com.ph.web.common.response.WrapperResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "ph-simple-storage", path = "/")
public interface StorageFeignService {
    @RequestMapping(value = "/api/storage/dec_storage", method = RequestMethod.POST)
    WrapperResponse<Object> decreaseStorage(@RequestBody CommodityDTO commodityDTO);
}
